<?php $weekdays = array('Chủ nhật', 'Hai', 'Ba', 'Tư', 'Năm', 'Sáu', 'Bảy');?>

<header>
	<h2><?php echo $subject['Subject']['sub_name'];?></h2>		
</header>
<article>
	<ul class="mb-b">
		<li>Lịch học:
			<ul>
				<?php foreach ($schedules as $schedule):?>
				<li>
				<input type="checkbox" id="check<?php echo $schedule['Schedule']['m_sdl_id']; ?>" onclick="func_setListScheId('<?php echo $schedule['Schedule']['m_sdl_id'];  ?>', 'check<?php echo $schedule['Schedule']['m_sdl_id']; ?>')"> <a onclick="scheduleEdit(<?php echo $subject['Subject']['sub_id'];?>, <?php echo $schedule['Schedule']['m_sdl_id']; ?>)">
				<?php echo $weekdays[$schedule['Schedule']['m_sdl_week_day']]?>: <?php echo $schedule['Schedule']['m_sdl_start_hour']." giờ ".$schedule['Schedule']['m_sdl_start_min']?>  - <?php echo $schedule['Schedule']['m_sdl_end_hour']." giờ ".$schedule['Schedule']['m_sdl_end_min'];?></a></li>
				<?php endforeach;?>
			</ul>
			<a onclick="scheduleDelete(<?php echo $subject['Subject']['sub_id'];?>)">Xóa lịch học</a>
			 / 
			<a onclick="scheduleAdd(<?php echo $subject['Subject']['sub_id'];?>)">Thêm lịch học</a>
		</li>
	</ul>
</article>
